using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application;

/// <summary>
/// 电价规则/方案
/// </summary>
[SugarTable("ElectricityPriceRule", "电价方案")]
[SysTable]
public class ElectricityPriceRule : EntityTenant
{
	/// <summary>
	/// 方案名称
	/// </summary>
	public string Name { get; set; }

	/// <summary>
	/// 描述
	/// </summary>
	public string? Description { get; set; }

	/// <summary>
	/// 0单费率，1复费率
	/// </summary>
	public int Type { get; set; }

	/// <summary>
	/// 单费率单价 元/度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? Price { get; set; }

	/// <summary>
	/// 尖 单价 元/度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? SharpPrice { get; set; }

	/// <summary>
	/// 峰 单价 元/度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? PeakPrice { get; set; }

	/// <summary>
	/// 平 单价 元/度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? FlatPrice { get; set; }

	/// <summary>
	/// 谷 单价 元/度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? ValleyPrice { get; set; }

	/// <summary>
	/// 深谷 单价 元/度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? DeepValleyPrice { get; set; }
}
